/*
 * This file is Copyright 2002-2006 Loyola University Chicago,
 * Department of Computer Science and the Emerging Technologies Laboratory.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License via
 *    http://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.citep.formats.input.transactions;

import java.math.BigDecimal;
import java.util.Date;

import com.citep.formats.input.accounts.ImportedAccount;
import com.citep.business.Account;
import com.citep.business.Entry;
import com.citep.business.EntryTypes;
import com.citep.business.Transaction;

public class ImportedEntry implements Entry {

	private Account account;
	private BigDecimal amount;
	private int id;
	private String memo;
	private Account source;
	private EntryTypes type;
	private Date date;
	
	public Transaction getTransaction() {
		// This does not apply because we are only imported entries
		return null;
	}
	
	
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Account getSource() {
		return source;
	}
	public void setSource(Account source) {
		this.source = source;
	}
	public EntryTypes getType() {
		return type;
	}
	public void setType(EntryTypes type) {
		this.type = type;
	}
	
	public String toString() {
		return String.format("Transaction: memo=%s, transactionType=%s, amount=%s, datePosted=%s", 
				memo, type, amount, date);
		
	}


	public Date getDate() {
		return date;
	}


	public void setDate(Date date) {
		this.date = date;
	}
}
